package xyz.poke.business.tool.param;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author 迫壳
 * @date 2024/3/3 22:02
 */
@Data
public class UserParam {

    /**
     * 管理员名称
     */
    @NotNull(message = "用户名不能为空")
    private String username;

    /**
     * 管理员密码
     */
    @NotNull(message = "密码不能为空")
    @Size(min = 6, message = "密码最少6位")
    private String password;

    /**
     * 用户角色
     * @see xyz.poke.business.tool.enums.UserRoleEnum
     */
    private List<String> roleIds;

}
